package com.zyong.design.pattern.visitor.case1;

/**
 * @program: zyong-design-pattern
 * @ClassName: ConcreteElementB
 * @author: zyong
 * @create: 2024-03-28 23:22
 */
public class ConcreteElementB implements Element {
    private int age;

    public ConcreteElementB(int age) {
        this.age = age;
    }

    public int getAge() {
        return age;
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.operate(this);
    }
}
